var i=0;
 $(function(){	        	
	$('.banner-pic ul li').click(function(){
	     var pt=$(this).children().attr('src');
	     $(this).addClass('li-ban').siblings().removeClass('li-ban');
	     $('.banner-pic a img').attr('src',pt);
	})
	change();	        		
});
function change(){
	if(i==$('.banner-pic ul li').length) i=0;
	$('.banner-pic ul li').eq(i).addClass('li-ban').siblings().removeClass('li-ban');
	var px=$('.banner-pic ul li').eq(i).children().attr('src');
	$('.banner-pic a img').attr('src',px);
	i++;
	setTimeout(change,5000);
}
